## 如果添加的这个参数全局都会用到，可以加一这里

CUR_DIR?=./

ifeq ($(MODEL), amd64)
CFLAGS += -D__AMD64__
else ifeq ($(MODEL), 600a)
CFLAGS += -D__ARM64__
endif

CFLAGS+= -fPIC -Wall -Wno-unused-result -Wno-write-strings
CFLAGS+= -Wpointer-arith -Wno-unused-function
CFLAGS+= -Wno-unused-variable -Wno-unused-but-set-variable
CFLAGS+= -Werror=return-type -Werror=maybe-uninitialized
CXXFLAGS += $(CFLAGS)
ifeq ($(DEBUG), yes)
	CFLAGS += -g
	CXXFLAGS += -g
else
	CFLAGS += -O2
	CXXFLAGS += -O2
endif

